using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;

using System.Runtime.InteropServices;
using Microsoft.Xna.Framework.Audio;
namespace mirror
{
    class cSoundManager : Singleton<cSoundManager>
    {
        Dictionary<string, SoundEffect> sounds;

        public cSoundManager()
        {
            
        }

        public void Init(ContentManager content)
        {
            sounds = new Dictionary<string, SoundEffect>();
            sounds.Add("onPlayerHit",content.Load<SoundEffect>("piou"));
            sounds.Add("onEnemyHit", content.Load<SoundEffect>("death"));
            sounds.Add("onLaserFire", content.Load<SoundEffect>("shoot1"));
        }

        public void PlaySound(string name)
        {
            sounds[name].Play();
        }

        

    }


}
